package com.leyou.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.auth.dto.UserDetail;
import com.leyou.user.dto.UserDto;
import com.leyou.user.entity.User;

public interface UserService extends IService<User> {
    Boolean exists(String data, Integer type);

    UserDto queryByNameAndPd(String username, String password);

    void saveUser(User user,String code);

    void sendCode(String phone);

    UserDetail checkLogin(String token);
}